package com.javapandeng.base;

import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;

/**

 * @Version 1.0
 **/

public class AlipayConfig {

    /**
     * 支付宝网关
     */
    private static final String PAY_GATEWAY = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";


    /**
     * 支付宝 APPID
     */
//    public static final String APPID = "2021000118661460";
//    public static final String APPID = "2021000122623456";
    public static final String APPID = "9021000130609751";

    /**
     * 应用私钥
     */
//    public static final String APP_PRI_KEY = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCMACZYpXwE5wXu/cTRnBmKkXfKLN7lMxkkxegnPCqXEVOvVKbSZhg+l0Gd6RQ/a5H913T6yM0Ua9LgbmUo8s0BXGguOi6Ns7bARLKgwbWNDXaDiHt7O0t2BoEERtBKoEk6G4O97W/pPlCCNgJ9JTpu0rLgcppdo1lNXd+b2mTzanB4uccRzvW6t3twN3jp2ZOeLZVCBvXtvEBOJ7Aea3163c/XTU7qzlIQh0/+8eDF7UZsaTNvGOBcICFJdqEUTCihuJJRbTuHvcQr8QeqYJ5LNFz8OV3NR6prFfLNkhsXIsMP4J20VBjcUO0p5j6ahjMpHCL9w2XsQtC115VCA0OHAgMBAAECggEAee/TdlhEKZzyPRNIbuzQDjHfLPdh+C1GVBIPvsSXr9ZGlipb1ltX+IQTga81lHtjv7z+RUPJ42R6WkGs2DqJtgq/Lqw8Se1iWho7nuq47y7vr2abblzZv+WwT4JB/w2WWgcG+tCoLXW593+FMWzQdSAM7pLCwpX4vPrrPLq+PIeGOsa6QcJrlwouNaQS5A9rAt1V/vKycK57m5Lz+KxiJqXwR6FECDuiP3L5ZNBjHXVoQsfnslAQjD68nSN/qdkagQz9f0s5iPQuJJYVhrf9A3Ox2kvQER+3t45EXpiyetYiGjVpHkF4AsfP0cCRFJf7jNVNpC5IqhOXYdsQTK/HgQKBgQDbFFvfq1FYuKmPuCqmsu09WU2vlwG/3oKXKdEsyJTkHMOmtvnOTh7MiTe19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wvsh6JCFMSMDaQZLGguiQq14rRsLKvmiWnUOmdQQKBgQDGfRcrPzbjSRD7HQv3G0Z9sLVQ9uiL1NPmXqSbO+J12NTnQJh5mj7C01sXoUPmzsKh/5FW5Jg5rd5+OCiXtOuVcVTCWWDFnGICGXqicqIvp23U1mwkQ+Fn9yW8aLNJxLDoSzsrL/D3imzXTI0Z3qWHIP+2H9V05rMak9+An9+MUQKBgQC96TrdWyDYWIEk/de70bub/BLY16VU3ZcTOHm4SLo0gk84EqLa1lMVob7jPN9RYytHNQBuzI8PtBsYYDr5+AeblegLdt+D3s6PfHAH4EFii9g1Mlpa3yfwCBbjS9Kj5h+XynGwCq0L/hlF/zsVv8bZha/rmDDSNEQdabRdbqajVQKBgHVonQHZ3K/JEqBXaDJ9Ec9bbYU86AV+mPFV3mxsmeI3pog773VOxf0cZG+v1qh6eSq2L9SEV38W19s1gN1sCUZWyVpE4DdD771qMN5SjJk/onoZc9JnzLdgvBOcoyDplfNyPMepDhJ+8S7Re01oI+WwoVGrtun1ZNA91CETcHphAoGAWwrGd3vKYSz8rHksxROktwC/IEkxL2ATntlCMQBck/Osepski3iX2BT0aAe0n1XFV5unG3bhVovnOWZYn6EyNHpHBcf1G0jjCZKEOqJddhrIiagb/NhiUwXtwwWEc6JMnv4kRlq33rnv78iN0L1hXMJkNbN+JCd+SAN2vhvfswkCgYBYZ8iGCwXk91/Sy0gcY8jqoMiNprjyLFkp6oBWLWACdWdB4b2sSoMxuJWov0N5mRlcwsieulkTd7HBu97VLOcp+85YRIFNsQy+X4GOJ7DTOb3BcEFy0WlHnnkKh/7RyzCDfVuRcGDmU5N/BzYbsMtsD1mWZOipxLi6NWiL2OXTNw==";
    /**
     * 应用公钥
     */
//    public static final String APP_PUB_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjAAmWKV8BOcF7v3E0ZwZipF3yize5TMZJMXoJzwqlxFTr1Sm0mYYPpdBnekUP2uR/dd0+sjNFGvS4G5lKPLNAVxoLjoujbO2wESyoMG1jQ12g4h7eztLdgaBBEbQSqBJOhuDve1v6T5QgjYCfSU6btKy4HKaXaNZTV3fm9pk82pweLnHEc71urd7cDd46dmTni2VQgb17bxATiewHmt9et3P101O6s5SEIdP/vHgxe1GbGkzbxjgXCAhSXahFEwoobiSUW07h73EK/EHqmCeSzRc/DldzUeqaxXyzZIbFyLDD+CdtFQY3FDtKeY+moYzKRwi/cNl7ELQtdeVQgNDhwIDAQAB";
//    public static final String APP_PUB_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjFm44Nh5gk42x2ecmuiBxWfWrbNbtyeF12tjejdDdYdwE2AFjjHI4hw708tzFBGssZIsws9D5Hj6BcZ5jCN9wxzoGyVKvjlw7uVMFqTJlaJID8bhHBT0/WyN0jFh0lvDdpdIfJlnFqw7bpDrhhn4c7qN+APwt85ee1qwhV2Kxanuz/GmWOR2Ft11RGgisocOdObnlm24k20vB7UTyYjxTau1aU/Ix3WbuqQE7ER/yYTM70EbE4khQ7PCXE4NEgBFMRzmqq/floGBa21oBCnDg/NdVgTDsUxnzEv/aLz2Fl/PhhuWYHvjYMz+mriXmX056luJSIrXjc2VF4Z7bEscMwIDAQAB";
    public static final String APP_PUB_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkz8vmPvsygdAeTHcMQK65P2tx3DX1mOCAjTz/XrOkGF5ZQ+eAuhyhxgkFqK/y7/pBhICOQUyufuUljGfTk8ithuCyvLG1+zzAZ/W6Vift8gdS7XhDdauwJVQXGfipVLuOXH8gkfORj0SRfDe1f22NILwf5Fjl5ZRRs4eumgbbiqp7sAyuEh2Ek3Skfhn8DdugbIdMxL+LKu+1Bez6XWtwfJlfJPIbiaSZR2hwyIZ4H74WXmLewwT/piKm5VAiuY2LTcRAxr3+aZU/nrWk8SzgKlich9wROiuBnTMU8xuK/NueA8E1lsBqPkqLC3/iJhd5HQAjuVTqo0pmcItNhcp5QIDAQAB";
    /**
     * 支付宝公钥
     */
//    public static final String ALIPAY_PUB_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApljHS05GgTAVgoUkiw8coPOItt9ZIAtrc8TpfthQzxeOb4KbD+RKrQUZYoFyaqWYcuJu52Zd9ObWLK3XxjtYNGELKITdR2QXHBCZxMJfPAg2Ek1DAO+gApIr7vOKhYxRvvKK6XISGkxgFds4Cf7aHol4va+LLm1KdBfqulPLf626U685QokMcKP6nu61cM8irVDEKO2Qzc+AwAgdUj+dMopdPNrzVS/Zl9wY7xVmhy9vxRVOK4PWvz94jkuEy2JabNGouK3vOFomRNT2flgQ1Lmpblcv7Htz9klgebDV26MZSwPsvtHaezsJVkjTwz+flHX7A6ezvPHiy38A5pZ6dQIDAQAB";
//    public static final String ALIPAY_PUB_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApljHS05GgTAVgoUkiw8coPOItt9ZIAtrc8TpfthQzxeOb4KbD+RKrQUZYoFyaqWYcuJu52Zd9ObWLK3XxjtYNGELKITdR2QXHBCZxMJfPAg2Ek1DAO+gApIr7vOKhYxRvvKK6XISGkxgFds4Cf7aHol4va+LLm1KdBfqulPLf626U685QokMcKP6nu61cM8irVDEKO2Qzc+AwAgdUj+dMopdPNrzVS/Zl9wY7xVmhy9vxRVOK4PWvz94jkuEy2JabNGouK3vOFomRNT2flgQ1Lmpblcv7Htz9klgebDV26MZSwPsvtHaezsJVkjTwz+flHX7A6ezvPHiy38A5pZ6dQIDAQAB";
    public static final String ALIPAY_PUB_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAkzeduLBT2MVWqZIehI3MLe+yQDNYzXkKC+mIlq+N6ucAJOny6AdowCs3QWl/JVLGieeQo7InDcOBvDX0imj+T6GS362SGCfMeNHt1Fu5hF5Gwq/smt/esHoqe+uwYEwqa5JqgbaP2vbsYEhhBzCME2qspkcgsiL13XbFy9TCCpeXi6Atn9BYNy1Erm92WL43JAsKnblOvCoF19qIxejHUop4pLUvCzYxzkwVvwSyfL9DS7mkA5TZJ/k8ny14hqkYMqPJR8aBmRAiN2fKTILJXrCIAunD3ZGj7R6WvOMG2T1rN8stjHdRiFVn+hMN1bzg7oftwh17raWPwgsD9VDF6QIDAQAB";
    /**
     * 签名类型
     */
    public static final String SIGN_TYPE = "RSA2";


    /**
     * 字符编码
     */
    public static final String CHARSET = "UTF-8";

    /**
     * 返回参数格式
     */
    public static final String FORMAT = "json";


    private AlipayConfig() {

    }

    private volatile static AlipayClient instance = null;

    /**
     * 单例模式获取, 双重锁校验
     *
     * @return
     */
    public static AlipayClient getInstance() {

        if (instance == null) {
            synchronized (AlipayConfig.class) {
                if (instance == null) {
                    instance = new DefaultAlipayClient(PAY_GATEWAY, APPID, APP_PRI_KEY, FORMAT, CHARSET,
                            ALIPAY_PUB_KEY, SIGN_TYPE);
                }
            }
        }
        return instance;
    }

}
